import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'gather_distribute' })
export default class GatherDistribute extends BaseEntity {
  @Column({ type: 'varchar', length: 50, name: 'machine_code', comment: '设备编码',unique:true })
  @ApiProperty()
  machineCode: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
